package com.mew.common.rest.events;

import com.mew.common.rest.MewResponse;
import io.netty.buffer.ByteBuf;
import lombok.*;


@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class PiggyInfoResponseMessage extends MewResponse<PiggyInfoResponseMessage> {

    public long lineGold; //划线金币
    public long gold; //显示金币
    public int prob; //百分比
    public String money; //价格

    @Override
    public void write(ByteBuf b) {

        writeLong(b, this.lineGold);
        writeLong(b, this.gold);
        writeInt(b, this.prob);
        writeString(b, this.money);
    }

    @Override
    public PiggyInfoResponseMessage read(ByteBuf byteBuf) {
        return null;
    }

}
